package cn.itcast.storage.service;

import cn.itcast.storage.entity.Storage;

public interface StorageService{

    /**
     * 扣除存储数量
     */
    void deduct(String commodityCode, int count);

    /**
     * @Description: 根据商品编码查询对应的库存信息
     * @param commodityCode
     * @return cn.itcast.storage.entity.Storage
     */
    Storage getStorageInfoByCommodityCode(String commodityCode);
}